 /*
  * Copyright (c) 2021, 2023, yishun.cn All rights reserved.
  *
  */
 package cn;

 import cn.shun.config.SpringConfig;
 import cn.shun.entity.Users;
 import cn.shun.mapper.UsersMapper;
 import org.junit.jupiter.api.DisplayName;
 import org.junit.jupiter.api.Test;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

 import java.util.List;

 /**
  * <p>Project: MyBatis2023 - ManyToMany
  * <p>Powered by yishun On 2023-02-02 21:43:45
  *
  * @author yishun [2465734101@qq.com]
  * @version 1.0
  * @since 17
  */
 @SpringJUnitConfig(SpringConfig.class)
 public class ManyToMany {
     @Autowired
     UsersMapper um;

     @Test
     @DisplayName("多对多测试")
     void t1() {
         List<Users> list = um.queryAll();
         list.forEach(System.out::println);
     }

 }
